<template>
	<view class="content-warp">
		<view class="user-bg">

			<view class="border-box padding-lg flex justify-between">
				<image class="user-avatar" :src="avatar" mode=""></image>
				<view class="flex justify-between flex1 margin-tb-xs">
					<view class="">
						<view class="text-lg text-white font-600">
							{{nick}}
						</view>
						<view class="text-sm margin-tb-xs text-white">
							{{ signature }}
						</view>
					</view>

					<u-icon name="arrow-right" color="#fff" size="28"></u-icon>
				</view>
			</view>
		</view>



		<!-- 跳转路由 -->
		<view class="content-list padding-top-sm">
			<u-cell-group :border="false">
				<u-cell icon="share" :border="false" title="个人信息 " isLink url="/pages/login/login"></u-cell>
				<u-line></u-line>

				<u-cell icon="share" :border="false" title="版本信息" isLink url="/pages/login/login"></u-cell>
				<u-line></u-line>
				<u-cell icon="share" :border="false" title="系统设置" isLink url="/pages/login/login"></u-cell>
				<u-line></u-line>
				<u-cell icon="share" :border="false" title="关于我们" isLink url="/pages/login/login"></u-cell>
				<u-line></u-line>
				<u-cell icon="share" :border="false" title="退出登录" isLink url="/pages/login/login"></u-cell>
			</u-cell-group>

		</view>


	</view>
</template>

<script>
	import {
		mapGetters
	} from "vuex"
	export default {
		data() {
			return {
				title: 'Hello',
			}
		},
		computed: {
			...mapGetters(['nick', 'avatar', 'signature'])
		},
		onLoad() {

		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.content-warp {}

	.user-bg {
		position: relative;
		width: 750rpx;
		height: 464rpx;
		padding-top: 154rpx;
		background-color: $self-color-primary;
	}

	.flex1 {
		flex-grow: 1;
		padding-left: 20rpx;
	}

	.user-avatar {
		width: 128rpx;
		height: 128rpx;
		border-radius: 64rpx;
		font-variant: small-caps;
		margin: 0;
		padding: 0;
		display: inline-flex;
		text-align: center;
		justify-content: center;
		align-items: center;
		background-color: #ccc;
		color: #ffffff;
		white-space: nowrap;
		position: relative;
		background-size: cover;
		background-position: center;
		vertical-align: middle;
	}

	.content-list {
		position: absolute;
		top: 434rpx;
		width: 100%;
		height: 440rpx;
		border-top-left-radius: 30rpx;
		border-top-right-radius: 30rpx;
		background-color: #fff;
	}
	
</style>